<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户分享</title> <#include "/WEB-INF/content/module-index.html">
<script type="text/javascript">
var sharemobile='${model.sharemobile}';
function statusFormatter(value,rowData,rowIndex){
	if(value==0){
		return "否";
	}else
		return "是";
}
$(function(){
	$("#search").click(function(){
		var targetmobile=$("#targetmobile").val();
		var sharemobile=$("#sharemobile").val();
		var leftCreateTime=$("#leftCreateTime").datetimebox("getValue");
		var rightCreateTime=$("#rightCreateTime").datetimebox("getValue");
		$("#grid").datagrid("reload",{"targetmobile":targetmobile,"leftCreateTime":leftCreateTime,
		"rightCreateTime":rightCreateTime,"sharemobile":sharemobile});		
	});		
});
</script>
<style>
a.btn-border{
	border: 1px solid #ccc;
}
</style>
</head>
<body>
<body class="easyui-layout">
	<div region="center" style="padding: 5px; background:#eee;">
		<div id="toolbar">
			<input id="targetmobile" placeholder="目标手机号码"/>
			<input id="sharemobile" placeholder="我的手机号码"/>
			分享时间:<input id="leftCreateTime" class="easyui-datetimebox" editable="false"/>至
			<input id="rightCreateTime" class="easyui-datetimebox" editable="false"/>
			<a id="search" class="easyui-linkbutton" icon="icon-search" style="border: 1px solid #ccc" plain="true">搜索</a>		
		</div>
		<table id="grid" class="easyui-datagrid" url="query?sharemobile=${model.sharemobile}" align="center" idField="sid" rownumbers="true" striped="true" fitColumns="true" fit="true" pagination="true" singleSelect="true" toolbar="#toolbar">
			<thead>
				<tr>
					<th field="targetmobile" width="50">目标手机号码</th>
					<th field="sharemobile" width="50">我的手机号码</th>
					<th field="status" width="20" formatter="statusFormatter">目标手机是否注册</th>
					<th field="createtime" width="30" align='center'>分享时间</th>
				</tr>
			</thead>
		</table>
	</div>
</body>
</body>

</html>